/*
 * @Descripttion: HN-SaaS管理系统
 * @version: 1.0.0
 * @Author: 侯建军
 * @Date: 2020-09-04 15:40:52
 * @LastEditors: 侯建军
 * @LastEditTime: 2020-09-05 14:26:08
 */
import request from '@/utils/request'

/**
 * 添加角色
 * @param {*} role 
 */
export function insert(role){
    return  request({ url: "/role", method: "post", data: role });
}

/**
 * 修改角色
 * @param {*} role 
 */
export function update(role){
    return  request({ url: "/role", method: "put", data: role });
}

/**
 * 删除角色
 * @param {*} role 
 */
export function remove(id){
    return  request({ url: "/role/"+id, method: "delete"});
}

/**
 * 查询角色
 * @param {*} role 
 */
export function getRoles(){
    return  request({ url: "/role", method: "get"});
}